from django.conf.urls import url

from apps.users.views import RegisterView, XiugaiView, UserView, LoginView, LogoutView, GerenView, NamechangeView

urlpatterns = [
    url(r'^login/$',LoginView.as_view(),name='login'),                #  登录
    url(r'^register/$', RegisterView.as_view(), name="register"),     #  注册
    url(r'^logout/$', LogoutView.as_view(), name="logout"),             #  登出
    url(r'^users/$', UserView.as_view(), name="users"),                 # 个人中心
    url(r'^users/password/$', XiugaiView.as_view(), name="password"),   #  修改
    url(r'^users/geren/$',GerenView.as_view(),name='geren')  ,         # 个人信息
    url(r'^users/namechange/$',NamechangeView.as_view(),name='namechange'),   #  名字修改
]